Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implementation of a new EBL model from Finke et al. 2022. #465

Merged
merged 4 commits into from
Mar 18, 2024

Conversation

Yannick-Schmidt
Copy link
Contributor

This PR adds the recent model from Finke et al. 2022 to the existing selection of custom photon fields. It is related to the corresponding pull request in the CRPropa-data repository.

The implementation includes the ...

  • ... general creation of a new class, which simply inherits rom the TabularPhotonField base class (in the PhotonBackground.h file).
  • ... adding of the new model to the interaction test files (testInteraction.cpp).

A new class -- inhereting from the TabularPhotonField class -- was created in the PhotonBackground.h file to fully implement the new EBL model. More over the model was added to various test calculations for every interaction in the testInteraction.cpp script.
@rafaelab
Copy link
Member

For the record, I've been waiting for the changes in the CRPropa3-data repo to check and merge both together.

@lukasmerten
Copy link
Member

Hi @rafaelab, @Yannick-Schmidt, @JulienDoerner
I updated the download link, after uploading the new tarball to sciebo. Furthermore, I resolved some merge conflicts and updated the changelog. Pleas let Yannick and me know, if there is anything else taht needs to be done for the new EBL modek to be implemeneted.

Copy link
Member

@JulienDoerner JulienDoerner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not see any serious issue here, only some small style comments.
I will aprove it anyway so that it can be merged afterwards.

@@ -40,6 +40,8 @@ TEST(ElectronPairProduction, allBackgrounds) {
epp.setPhotonField(irb);
irb = new IRB_Stecker16_lower();
epp.setPhotonField(irb);
irb = new IRB_Finke22();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whitespace

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not creating a new commit just to fix the whitepace, but we should probably do this at some point in a consistent way for all files.

@@ -718,6 +724,8 @@ TEST(EMPairProduction, allBackgrounds) {
em.setPhotonField(ebl);
ebl = new IRB_Stecker16_lower();
em.setPhotonField(ebl);
ebl = new IRB_Finke22();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is it called EBL here and IRB else?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that depends on who implemented the test in the first place. Could be cleaned up in the future.

@lukasmerten lukasmerten merged commit b588923 into CRPropa:master Mar 18, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants